package com.ruoyi.region.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.region.mapper.TSysCityMapper;
import com.ruoyi.region.domain.TSysCity;
import com.ruoyi.region.service.ITSysCityService;

/**
 * 城市设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-14
 */
@Service
public class TSysCityServiceImpl implements ITSysCityService 
{
    @Autowired
    private TSysCityMapper tSysCityMapper;

    /**
     * 查询城市设置
     * 
     * @param id 城市设置主键
     * @return 城市设置
     */
    @Override
    public TSysCity selectTSysCityById(Long id)
    {
        return tSysCityMapper.selectTSysCityById(id);
    }

    /**
     * 查询城市设置列表
     * 
     * @param tSysCity 城市设置
     * @return 城市设置
     */
    @Override
    public List<TSysCity> selectTSysCityList(TSysCity tSysCity)
    {
        return tSysCityMapper.selectTSysCityList(tSysCity);
    }

    /**
     * 新增城市设置
     * 
     * @param tSysCity 城市设置
     * @return 结果
     */
    @Override
    public int insertTSysCity(TSysCity tSysCity)
    {
        return tSysCityMapper.insertTSysCity(tSysCity);
    }

    /**
     * 修改城市设置
     * 
     * @param tSysCity 城市设置
     * @return 结果
     */
    @Override
    public int updateTSysCity(TSysCity tSysCity)
    {
        return tSysCityMapper.updateTSysCity(tSysCity);
    }

    /**
     * 批量删除城市设置
     * 
     * @param ids 需要删除的城市设置主键
     * @return 结果
     */
    @Override
    public int deleteTSysCityByIds(Long[] ids)
    {
        return tSysCityMapper.deleteTSysCityByIds(ids);
    }

    /**
     * 删除城市设置信息
     * 
     * @param id 城市设置主键
     * @return 结果
     */
    @Override
    public int deleteTSysCityById(Long id)
    {
        return tSysCityMapper.deleteTSysCityById(id);
    }
}
